<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
</head>
<body>
  
<%
int sum=0;
     
for (int i=1;i<=100;i++)
{
  sum+=i; 
  out.println(i);
}  
  
  out.clearBuffer();
  
  out.flush();
  out.print("1+2+3+4+...+100="+sum);
%>
  
<br>
1+2+3+4+...+100=<%=sum%>
  

</body>
</html>
